home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C++ source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6e | 74 70 2d 74 72 64 2e 55 |Path: nn|tp-trd.U|
|00000010| 4e 49 4e 45 54 54 2e 6e | 6f 21 75 73 65 6e 65 74 |NINETT.n|o!usenet|
|00000020| 0a 46 72 6f 6d 3a 20 50 | 61 75 6c 20 4b 65 6e 6e |.From: P|aul Kenn|
|00000030| 65 74 68 20 45 67 65 6c | 6c 2d 6a 6f 68 6e 73 65 |eth Egel|l-johnse|
|00000040| 6e 20 3c 70 61 75 6c 6b | 65 6e 34 40 61 66 72 6f |n <paulk|en4@afro|
|00000050| 64 69 74 65 2e 6b 69 68 | 2e 6e 6f 3e 0a 4e 65 77 |dite.kih|.no>.New|
|00000060| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000070| 6e 67 2e 63 2b 2b 0a 53 | 75 62 6a 65 63 74 3a 20 |ng.c++.S|ubject: |
|00000080| 52 65 3a 20 70 6f 6c 79 | 6d 6f 72 70 68 69 73 6d |Re: poly|morphism|
|00000090| 20 61 6e 64 20 73 74 79 | 6c 65 0a 44 61 74 65 3a | and sty|le.Date:|
|000000a0| 20 4d 6f 6e 2c 20 32 36 | 20 46 65 62 20 31 39 39 | Mon, 26| Feb 199|
|000000b0| 36 20 31 34 3a 34 37 3a | 31 33 20 2b 30 31 30 30 |6 14:47:|13 +0100|
|000000c0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 55 |.Organiz|ation: U|
|000000d0| 4e 49 4e 45 54 54 20 6e | 65 77 73 20 73 65 72 76 |NINETT n|ews serv|
|000000e0| 69 63 65 09 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |ice..Mes|sage-ID:|
|000000f0| 20 3c 33 31 33 31 42 39 | 45 31 2e 37 34 40 61 66 | <3131B9|E1.74@af|
|00000100| 72 6f 64 69 74 65 2e 6b | 69 68 2e 6e 6f 3e 0a 52 |rodite.k|ih.no>.R|
|00000110| 65 66 65 72 65 6e 63 65 | 73 3a 20 3c 34 67 72 34 |eference|s: <4gr4|
|00000120| 75 72 24 6e 31 33 40 61 | 6c 70 68 61 2e 70 63 69 |ur$n13@a|lpha.pci|
|00000130| 78 2e 63 6f 6d 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |x.com>.N|NTP-Post|
|00000140| 69 6e 67 2d 48 6f 73 74 | 3a 20 61 66 72 6f 64 69 |ing-Host|: afrodi|
|00000150| 74 65 2e 6b 69 68 2e 6e | 6f 0a 4d 69 6d 65 2d 56 |te.kih.n|o.Mime-V|
|00000160| 65 72 73 69 6f 6e 3a 20 | 31 2e 30 0a 43 6f 6e 74 |ersion: |1.0.Cont|
|00000170| 65 6e 74 2d 54 79 70 65 | 3a 20 74 65 78 74 2f 70 |ent-Type|: text/p|
|00000180| 6c 61 69 6e 3b 20 63 68 | 61 72 73 65 74 3d 75 73 |lain; ch|arset=us|
|00000190| 2d 61 73 63 69 69 0a 43 | 6f 6e 74 65 6e 74 2d 54 |-ascii.C|ontent-T|
|000001a0| 72 61 6e 73 66 65 72 2d | 45 6e 63 6f 64 69 6e 67 |ransfer-|Encoding|
|000001b0| 3a 20 37 62 69 74 0a 58 | 2d 4d 61 69 6c 65 72 3a |: 7bit.X|-Mailer:|
|000001c0| 20 4d 6f 7a 69 6c 6c 61 | 20 32 2e 30 20 28 58 31 | Mozilla| 2.0 (X1|
|000001d0| 31 3b 20 49 3b 20 48 50 | 2d 55 58 20 41 2e 30 39 |1; I; HP|-UX A.09|
|000001e0| 2e 30 35 20 39 30 30 30 | 2f 37 32 30 29 0a 54 6f |.05 9000|/720).To|
|000001f0| 3a 20 65 64 20 6c 69 7a | 65 77 73 6b 69 20 3c 65 |: ed liz|ewski <e|
|00000200| 6c 69 7a 65 77 73 6b 40 | 63 61 70 65 63 6f 64 2e |lizewsk@|capecod.|
|00000210| 6e 65 74 3e 0a 0a 65 64 | 20 6c 69 7a 65 77 73 6b |net>..ed| lizewsk|
|00000220| 69 20 77 72 6f 74 65 3a | 0a 0a 3e 20 20 20 51 75 |i wrote:|..> Qu|
|00000230| 65 73 74 69 6f 6e 20 6f | 6e 20 70 6f 6c 79 6d 6f |estion o|n polymo|
|00000240| 72 70 68 69 73 6d 20 61 | 6e 64 20 73 74 79 6c 65 |rphism a|nd style|
|00000250| 2e 0a 3e 20 57 61 6e 74 | 20 74 6f 20 63 61 6c 6c |..> Want| to call|
|00000260| 20 61 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 20 61 | a funct|ion in a|
|00000270| 20 6d 6f 73 74 20 64 65 | 72 69 76 65 64 20 63 6c | most de|rived cl|
|00000280| 61 73 73 20 6f 66 66 20 | 61 20 70 6f 69 6e 74 65 |ass off |a pointe|
|00000290| 72 20 74 6f 20 74 68 65 | 20 62 61 73 65 0a 3e 20 |r to the| base.> |
|000002a0| 63 6c 61 73 73 2e 20 54 | 68 65 20 66 75 63 74 69 |class. T|he fucti|
|000002b0| 6f 6e 20 64 6f 65 73 20 | 6e 6f 74 20 65 78 69 73 |on does |not exis|
|000002c0| 74 20 69 6e 20 74 68 65 | 20 62 61 73 65 20 63 6c |t in the| base cl|
|000002d0| 61 73 73 2e 0a 3e 20 49 | 20 73 68 6f 75 6c 64 3a |ass..> I| should:|
|000002e0| 0a 0a 3e 20 33 29 61 64 | 64 20 69 74 20 74 6f 20 |..> 3)ad|d it to |
|000002f0| 74 68 65 20 62 61 73 65 | 20 63 6c 61 73 73 20 62 |the base| class b|
|00000300| 75 74 20 64 65 66 69 6e | 65 20 69 74 20 6c 69 6b |ut defin|e it lik|
|00000310| 65 0a 3e 20 20 20 20 20 | 20 66 6f 6f 28 20 2e 2e |e.> | foo( ..|
|00000320| 77 68 61 74 65 76 65 72 | 2e 2e 29 20 7b 65 72 72 |whatever|..) {err|
|00000330| 6f 72 5f 6d 73 67 28 22 | 76 69 72 74 75 61 6c 20 |or_msg("|virtual |
|00000340| 66 75 6e 63 74 69 6f 6e | 20 6e 6f 74 20 64 65 66 |function| not def|
|00000350| 69 6e 65 64 22 29 3b 7d | 0a 3e 20 20 20 54 68 69 |ined");}|.> Thi|
|00000360| 73 20 77 61 79 20 6f 6e | 6c 79 20 74 68 65 20 63 |s way on|ly the c|
|00000370| 6c 61 73 73 20 74 68 61 | 74 20 75 73 65 73 20 69 |lass tha|t uses i|
|00000380| 74 20 77 6f 75 6c 64 20 | 68 61 76 65 20 74 6f 20 |t would |have to |
|00000390| 64 65 66 69 6e 65 20 69 | 74 2e 0a 0a 44 65 66 69 |define i|t...Defi|
|000003a0| 6e 65 0a 09 76 69 72 74 | 75 61 6c 20 66 6f 6f 28 |ne..virt|ual foo(|
|000003b0| 29 20 7b 65 72 72 6f 72 | 5f 6d 73 67 28 22 76 69 |) {error|_msg("vi|
|000003c0| 72 74 75 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 6e |rtual fu|nction n|
|000003d0| 6f 74 20 64 65 66 69 6e | 65 64 22 29 3b 7d 0a 0a |ot defin|ed");}..|
|000003e0| 54 68 65 6e 20 79 6f 75 | 20 63 61 6e 20 6f 76 65 |Then you| can ove|
|000003f0| 72 72 69 64 65 20 74 68 | 65 20 69 6d 70 6c 65 6d |rride th|e implem|
|00000400| 65 6e 74 61 74 69 6f 6e | 20 69 6e 20 74 68 6f 73 |entation| in thos|
|00000410| 65 20 63 6c 61 73 73 65 | 73 20 77 68 69 63 68 0a |e classe|s which.|
|00000420| 6e 65 65 64 20 69 74 2c | 20 61 6e 64 20 6a 75 73 |need it,| and jus|
|00000430| 74 20 75 73 65 20 74 68 | 65 20 62 61 73 65 63 6c |t use th|e basecl|
|00000440| 61 73 73 27 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |ass' fun|ction in|
|00000450| 20 74 68 65 20 6f 74 68 | 65 72 73 2e 20 0a 0a 54 | the oth|ers. ..T|
|00000460| 68 61 74 20 69 73 20 68 | 6f 77 20 49 20 68 61 76 |hat is h|ow I hav|
|00000470| 65 20 73 65 65 6e 20 69 | 74 20 64 6f 6e 65 20 69 |e seen i|t done i|
|00000480| 6e 20 6d 61 6e 79 20 62 | 6f 6f 6b 73 20 6f 6e 20 |n many b|ooks on |
|00000490| 74 68 69 73 20 73 75 62 | 6a 65 63 74 2e 20 49 0a |this sub|ject. I.|
|000004a0| 61 6c 73 6f 20 77 6f 75 | 6c 64 20 6c 69 6b 65 20 |also wou|ld like |
|000004b0| 74 6f 20 72 65 66 65 72 | 20 79 6f 75 20 74 6f 0a |to refer| you to.|
|000004c0| 73 65 63 74 69 6f 6e 20 | 72 2e 31 30 2e 32 20 56 |section |r.10.2 V|
|000004d0| 69 72 74 75 61 6c 20 46 | 75 6e 63 74 69 6f 6e 73 |irtual F|unctions|
|000004e0| 20 69 6e 20 42 6a 61 72 | 6e 65 20 53 74 72 6f 75 | in Bjar|ne Strou|
|000004f0| 73 74 72 75 70 73 20 62 | 6f 6f 6b 20 22 54 68 65 |strups b|ook "The|
|00000500| 0a 43 2b 2b 20 70 72 6f | 67 72 61 6d 6d 69 6e 67 |.C++ pro|gramming|
|00000510| 20 6c 61 6e 67 75 61 67 | 65 2c 20 73 65 63 6f 6e | languag|e, secon|
|00000520| 64 20 65 64 69 74 69 6f | 6e 22 20 77 68 69 63 68 |d editio|n" which|
|00000530| 20 74 6f 75 63 68 65 73 | 20 74 68 69 73 0a 73 75 | touches| this.su|
|00000540| 62 6a 65 63 74 2e 20 0a | 0a 59 6f 75 20 73 68 6f |bject. .|.You sho|
|00000550| 75 6c 64 20 61 6c 73 6f | 20 70 72 6f 76 69 64 65 |uld also| provide|
|00000560| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00000570| 6e 20 69 6e 20 74 68 65 | 20 65 72 72 6f 72 20 6d |n in the| error m|
|00000580| 65 73 73 61 67 65 2c 0a | 6f 66 20 63 6f 75 72 73 |essage,.|of cours|
|00000590| 65 2e 0a 0a 2d 2d 20 0a | 50 61 75 6c 20 4b 20 45 |e...-- .|Paul K E|
|000005a0| 67 65 6c 6c 2d 4a 6f 68 | 6e 73 65 6e 2c 0a 0a 6d |gell-Joh|nsen,..m|
|000005b0| 61 69 6c 74 6f 3a 70 61 | 75 6c 6b 65 6e 34 40 61 |ailto:pa|ulken4@a|
|000005c0| 66 72 6f 64 69 74 65 2e | 6b 69 68 2e 6e 6f 0a 68 |frodite.|kih.no.h|
|000005d0| 74 74 70 3a 2f 2f 61 66 | 72 6f 64 69 74 65 2e 6b |ttp://af|rodite.k|
|000005e0| 69 68 2e 6e 6f 3a 38 30 | 30 31 2f 73 74 75 64 65 |ih.no:80|01/stude|
|000005f0| 6e 74 65 72 2f 70 61 75 | 6c 6b 65 6e 34 2f 66 72 |nter/pau|lken4/fr|
|00000600| 61 6d 65 73 2f 0a | |ames/. | |
+--------+-------------------------+-------------------------+--------+--------+